package com.zatech.cgnci.project.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ProportionalLiabilityInvoiceAddDTO {

    @ApiModelProperty("自增编号")
    private Long id;

    @ApiModelProperty("保单号")
    @NotNull(message = "保单号不能为空")
    private String policyNumber;

    @ApiModelProperty("合约类型")
    @NotNull(message = "合约类型不能为空")
    private String contractType;

    @ApiModelProperty("再保分出人")
    private String cedingCompany;

    @ApiModelProperty("再保接收人")
    private String receiver;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("再保经纪人")
    private String reinsuranceBroker;

    @ApiModelProperty("赔案名称")
    private String claimName;

    @ApiModelProperty("赔案Id")
    private String claimId;

    @ApiModelProperty("保险期限")
    private String policyTerm;

    @ApiModelProperty("保险起止描述")
    private String policyTermDesc;

    @ApiModelProperty("承保年度")
    private String policyYear;

    @ApiModelProperty("险种")
    @NotNull(message = "险种不能为空")
    private String policyType;

    @ApiModelProperty("险种名称")
    private String policyTypeName;

    @ApiModelProperty("账单编号")
    private String invoiceNumber;

    @ApiModelProperty("账单币种")
    @NotNull(message = "账单币种不能为空")
    private String currency;

    @ApiModelProperty("出险日期")
    private Date lossDate;

    @ApiModelProperty("出险原因")
    private String causeOfLoss;

    @ApiModelProperty("汇率")
    private BigDecimal fxRate;

    @ApiModelProperty("账单接收人")
    private String billRecipient;

    @ApiModelProperty("账单期")
    private String billingCycle;

    @ApiModelProperty("入账日期")
    private Date postingDate;

    @ApiModelProperty("应收付日期")
    private Date dueDate;

    @ApiModelProperty("实收付日期")
    private Date actualPaymentDate;

    @ApiModelProperty("收付方向")
    private String direction;

    @ApiModelProperty("总金额")
    private BigDecimal collectAmount;

    @ApiModelProperty("用户")
    private String user;

    @ApiModelProperty("起保日期")
    private Date statDate;

    @ApiModelProperty("终保日期")
    private Date endDate;

    @ApiModelProperty("总计金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("承接比例")
    private BigDecimal shareRatio;

    @ApiModelProperty("分出比例")
    private BigDecimal cededRatio;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("直保被保险人")
    private String insuredInsurer;

    @ApiModelProperty("账单明细")
    List<ContractBillDetailsAddDTO> detailsAddDTOS;
}
